import { FileLoggerFactory } from "./Factory/FileLoggerFactory";
import { RemoteLoggerFactory } from "./Factory/RemoteLoggerFactory";

// 通过不同产品所对应的工厂来得到产品

const fileFactory = new FileLoggerFactory();
const logger = fileFactory.createLogger();
logger.log("Hello World!");

const remoteFactory = new RemoteLoggerFactory();
const remoteLogger = remoteFactory.createLogger();
remoteLogger.log("Hello World!");